//
//  YDYProfileTypeButton.m
//  DY_Bilibili
//
//  Created by 杨德勇 on 2016/10/8.
//  Copyright © 2016年 杨德勇. All rights reserved.
//

#import "YDYProfileTypeButton.h"
//#import <UIView+YYAdd.h>
@implementation YDYProfileTypeButton

-(void)layoutSubviews{
    [super layoutSubviews];
    self.imageView.size = CGSizeMake(30, 30);
    self.titleLabel.width = self.width;
    self.titleLabel.textAlignment = NSTextAlignmentCenter;
    
    self.imageView.centerX = self.width * 0.5;
    self.imageView.centerY = self.width * 0.5 - self.imageView.width * 0.5 + 6;
    
    
    self.titleLabel.centerX = self.imageView.centerX;
    self.titleLabel.top = self.imageView.bottom + 8;

}

@end
